﻿using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace X23.EFCore.Mapping.Menu
{
    public class RoleMapping : Mapping<Model.Menu.Menu>
    {
        public override void OtherConfigure(EntityTypeBuilder<Model.Menu.Menu> builder)
        {
            builder.Property(x => x.Name).HasMaxLength(20);
            builder.Property(x => x.Url).HasMaxLength(100);
            builder.Property(x => x.ControllerName).HasMaxLength(100);
        }
    }
}
